package com.suntimes.guangjiegou.fragment.hot;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.TextView;

import com.suntimes.guangjiegou.R;
import com.suntimes.guangjiegou.fragment.BaseFragment;
import com.suntimes.guangjiegou.fragment.goods.GoodsFragment;

public class HotFragment extends BaseFragment {
	
	private TextView mText;
	
//	@Override
//	public View onCreateView(LayoutInflater inflater, ViewGroup container,
//			Bundle savedInstanceState) {
//		super.onCreateView(inflater, container, savedInstanceState);
//		View view = loadView(inflater, container, savedInstanceState);
//		return view;
//	}
	
	protected View loadView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		View view = inflater.inflate(R.layout.page_hot, null, false);
		
		mText = (TextView)view.findViewById(R.id.test);
		mText.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				getNavigationFragment().push(new GoodsFragment());
			}

			
		});
		
		return view;
	}
	
	@Override
	public void onResume() {
		super.onResume();
	}
	
	@Override
	public void onPause() {
		super.onPause();
	}
	
	@Override
	public void onDestroy() {
		super.onDestroy();
	}

	@Override
	public void onDestroyView() {
		super.onDestroyView();
	}

	

}
